package com.scoremg.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
public class PageController {

    // 登录
    @GetMapping("/{page}")
    public String index(@PathVariable("page") String page) {
         return "/view/"+page;
    }



    @GetMapping("/work/{page}")
    public String workPage(@PathVariable("page") String page) {
        return "/view/work/"+page;
    }


    // 忽略访问项目logo
    @RequestMapping("favicon.ico")
    @ResponseBody
    void returnNoFavicon(){}

}
